package com.leadingsoft.pwxk.converter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.ZlssfsDto;
import com.leadingsoft.pwxk.model.Zlssfs;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class ZlssfsConverter extends AbstractConverter<Zlssfs, ZlssfsDto> {

	@Autowired
	private FsinfoTableConverter fsinfoTableConverter;

	@Override
	protected ZlssfsDto toDtoActual(Zlssfs model) {

		ZlssfsDto dto = new ZlssfsDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setHyname(model.getHyname());
		dto.setHytypename(model.getHytypename());
		dto.setFsinfotable(fsinfoTableConverter.toDto(model.getFsinfoTable()));
		return dto;
	}

	@Override
	public void copyProperties(Zlssfs model, ZlssfsDto dto) {

	}

}
